package com.dyna.patterns.creation.factory.abstractfactory;

import com.dyna.patterns.creation.factory.abstractfactory.mac.AbstractMac;
import com.dyna.patterns.creation.factory.abstractfactory.phone.AbstractPhone;

public class MainDemo {
    public static void main(String[] args) {
        HuaweiHennanMac huaweiHennanMac = new HuaweiHennanMac();
        AbstractMac abstractMac = huaweiHennanMac.newMac();
        abstractMac.mac();

        HuaweiHunanPhone huaweiHunanPhone = new HuaweiHunanPhone();
        AbstractPhone abstractPhone = huaweiHunanPhone.newPhone();
        abstractPhone.phone();
    }
}
